﻿using System;

namespace Mojo.Widgets
{
    /// <summary>
    /// &lt;div x-mojo-element="CheckBox" id="checkboxId" class="checkboxClass" name="checkboxName"&gt;&lt;/div&gt;
    /// </summary>
    public class CheckBox
    {
    }

    public class CheckBoxAttributes : WidgetsCreateAttributes
    {
        /// <summary>
        /// Optional. Model property name for checkbox state.
        /// </summary>
        public string ModelProperty;	 

        /// <summary>
        /// Optional. Model property name for disabled boolean.
        /// </summary>
        public string DisabledProperty;

        /// <summary>
        /// Optional. Value to set model property when true.
        /// </summary>
        public string TrueValue;	 	 	 	 

        /// <summary>
        /// Optional. Value to set model property when false.
        /// </summary>
        public string FalseValue;

        /// <summary>
        /// Optional. Identifier for the value of the checkbox; used when the checkbox is used in html forms.
        /// </summary>
        public string InputName;
    }

    public class CheckBoxModel : WidgetsCreateModel
    {
        /// <summary>
        /// Required. Current value of widget.
        /// </summary>
        public object Value;

        /// <summary>
        /// Optional. If true, checkbox is inactive.
        /// </summary>
        public bool Disabled;
    }
}
